import Vue from 'vue'
import VueRouter from 'vue-router'
//导入login.vue页面
import login from '../views/login'


Vue.use(VueRouter)
const routes = [
  {
    //请求的地址
    path: "/login",
    name:"login",
    //找到login组件
    component: login
  },
  {
    path: "/home",
    name:"home",
    component: ()=>import("../views/Home")
  }
]

const router = new VueRouter({
  routes
})

export default router
